let initState = () => ({
  collapsed: false,             //菜单最小化
  showBasicMenuDrawer: false,   //是否显示基础菜单
});

export default {
  namespace: 'global',
  state: { ...initState() },
  effects: {},
  reducers: {
    setState(state, action) {
      return { ...state, ...action.payload };
    },
    init(state, action) {
      return { ...initState(), ...action.payload };
    },
  },
};
